<!DOCTYPE html>
<html>
<head>
    <meta charset="UTF-8">
    <title>{:session('cp.cpsysname')}--商户管理平台</title>
    <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0">
    <meta name="description" content="{:config('webconfig.description');}">
    <meta name="keywords" content="{:config('webconfig.keywords');}">
    <meta name="author" content="runoob">
    <link rel="stylesheet" href="__STATIC_URL__/static/css/bootstrap.css">
    <link rel="stylesheet" type="text/css" href="__STATIC_URL__/static/css/index.css"/>
    <link rel="stylesheet" type="text/css" href="__STATIC_URL__/static/member/css/core1.css?v=3"/>


    <script src="__STATIC_URL__/static/js/jquery-2.1.4.min.js" type="text/javascript" charset="utf-8"></script>

    <script src="__STATIC_URL__/static/bootstrap/3.3.7/js/bootstrap.min.js" type="text/javascript"
            charset="utf-8"></script>
    <script src="__STATIC_URL__/static/js/commen.js" type="text/javascript" charset="utf-8"></script>
    <script src="__STATIC_URL__/static/js/template.js"></script>
    <script src="__STATIC_URL__/static/layer/layer.js"></script>

</head>
<body>
{include file='public/header'/}
<!------------------导航-------------------------->
<section>
    {include file='public/left'/}
    <!--------------------------主要内容区域------------------------------------->
    <div class="content">
        <!--路径导航-->
        <div class="page-heading mgl15 mgr15">
            <ul class="breadcrumb">
                <li>当前位置是&nbsp;:</li>
                <li><a href="javascript:history.back();">营销工具</a></li>
                <li><a href="javascript:history.back(-1)">活动营销</a></li>
                <li class="active" style="color: #02b87f;">商户券列表</li>
            </ul>
        </div>
        <!--内容列表-->
        <!---
        <div class="alert alert-success alert-dismissible mgl15 mgr15" role="alert">
            <button type="button" class="close" data-dismiss="alert" aria-label="Close">
                <span aria-hidden="true">&times;</span>
            </button>
            设置说明：高级设置可设置卡券支付时的自动抵扣，目前开放了代金券和折扣券的自动抵扣设置，其他类型卡券暂不支持。
        </div>
      -->
        <div class="panel panel-default mgl15 mgr15">
            <div class="panel-heading addCharts" style="background:#ededed;">商户券列表



            </div>
            <div class="panel-body">

                <table class="table table-bordered" data-toolbar="#toolbar">
                    <thead>
                    <tr>
                        <th>类型</th>

                        <th>名称</th>

                        <th>库存</th>
                        <th>核销</th>
                        <th>领取</th>
                        <th>添加时间</th>
                        <th>操作</th>

                    </tr>
                    </thead>
                    <tbody>

                    <tr>
                        {volist name="list" id="vo"}
                        <td>{$vo.card_type|getcardtype=###}</td>

                        <td>
                            <a class="btn-link" data-toggle="modal" {if condition="checkPath('cards/getinfocards')"} data-target="#cardModal" {/if} data-id="{$vo.id}">{$vo.title}</a>
                            {eq name="vo.card_type" value="CASH"}
                            <br>
                            <code>

                                满{$vo.least_cost}减{$vo.reduce_cost}代金券 {eq name="vo.is_minus" value="1"}[立减金]{/eq}

                            </code>
                            {/eq}
                            {eq name="vo.card_type" value="DISCOUNT"}
                            <br>
                            <code>
                                {$vo.discount/10}折
                            </code>
                            {/eq}
                        </td>

                        <td>
                            {$vo.stocks}

                        </td>
                        <td>{$vo.consume}</td>
                        <td>{$vo.getsume}</td>
                        <td>{$vo.create_time}
                        </td>

                        <td>
                            {if condition="checkPath('marke/machputcardsup')"}
                            <a class="btn-link" href="{:url('marke/machputcardsup',['card_id'=>$vo['card_id']])}"> {if
                                condition="$vo['is_mach']=='0' "}<font color="red">已下架</font>{else/}已上架{/if}</a>
                            {/if}
                        </td>


                    </tr>
                    {/volist}
                    </tbody>
                </table>
                {$list->render()}
            </div>

        </div>
        {include file='public/footer'/}
    </div>

</section>
</body>




</html>
